
<?php
/*
$link =@mysql_connect('127.0.0.1','root','root');
if(!$link){
    die('连接失败，错误号为：'.mysql_errno().'失败原因：'.mysql_error());
}
mysql_select_db('blog');
mysql_set_charset('utf8');
$sql = "select * from blog";
$res = mysql_query($sql);
$arr = array();
while ($row = mysql_fetch_assoc($res)){
    $arr[] = $row;
}
// var_dump($arr);die;
$arr=$arr[0];
//mysql_free_result($res);
mysql_close();
*/
?>
<?php
require($_SERVER['DOCUMENT_ROOT'].'/admin/public/header.php');
?>
<!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="admin/index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/admin/column/index.php">作品管理</a><span class="crumb-step">&gt;</span><span>新增作品</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/column/xinzeng.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select name="colId" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                        </tr>
                        
                            <tr>
                                <th><i class="require-red">*</i>栏目名称：</th>
                                <td>
                                    <input class="common-text required" name="cname" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>栏目描述：</th>
                                <td>
                                    <input class="common-text required"  name="describe"  value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th>状态：</th>
                                <td>
                                <input class="common-text" type="radio" name="status" value="0" checked="checked" />不显示
                                <input class="common-text" type="radio" name="status" value="1">显示
                                </td>
                            </tr>
                            <tr>
                                <th>时间：</th>
                                <td><input type="text" name="datetime" value="time"></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
<?php
require($_SERVER['DOCUMENT_ROOT'].'/admin/public/footer.php');
?>
